package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("printing_record")
public class PrintingRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("record_no")
    private String recordNo;

    @TableField("product_name")
    private String productName;

    @TableField("start_time")
    private LocalDateTime startTime;

    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField("duration_minutes")
    private Integer durationMinutes;

    @TableField("print_qty")
    private Integer printQty;

    @TableField("material_brand")
    private String materialBrand;

    @TableField("supplier_name")
    private String supplierName;

    @TableField("material_lot")
    private String materialLot;

    @TableField("device_id")
    private Integer deviceId;

    @TableField("device_name")
    private String deviceName;

    @TableField("flow_rate_value")
    private BigDecimal flowRateValue;

    @TableField("flow_rate_unit")
    private String flowRateUnit;

    @TableField("input_grams")
    private BigDecimal inputGrams;

    @TableField("cleanout_grams")
    private BigDecimal cleanoutGrams;

    @TableField("fan_powder_grams")
    private BigDecimal fanPowderGrams;

    @TableField("base_weight_before_grams")
    private BigDecimal baseWeightBeforeGrams;

    @TableField("base_weight_after_grams")
    private BigDecimal baseWeightAfterGrams;

    @TableField("scrap_qty")
    private Integer scrapQty;

    @TableField("scrap_weight_grams")
    private BigDecimal scrapWeightGrams;

    @TableField("unload_operator_id")
    private Long unloadOperatorId;

    @TableField("unload_operator_name")
    private String unloadOperatorName;

    @TableField("remark")
    private String remark;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableLogic(value = "0", delval = "1")
    @TableField("is_deleted")
    private Integer isDeleted;
}